package org.example.myleet.p442;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[2,3]".equals(JsonUtils.toJson(solution.findDuplicates(new int[]{4,3,2,7,8,2,3,1}))));
        Assert.isTrue("[1]".equals(JsonUtils.toJson(solution.findDuplicates(new int[]{1,1,2}))));
        Assert.isTrue("[]".equals(JsonUtils.toJson(solution.findDuplicates(new int[]{1}))));
    }
}
